import request from '@/utils/request'

// 菜单列表
export function getMenu(params: any) {
  return request({
    url: '/v1/admin/system/menuList',
    method: 'get',
    params: params
  })
}

// 新增-菜单列表
export function addMenu(data: any) {
  return request({
    url: '/v1/admin/system/addMenu',
    method: 'post',
    data: data
  })
}

// 修改-菜单列表
export function editMenu(data: any) {
  return request({
    url: '/v1/admin/system/updateMenu',
    method: 'put',
    data: data
  })
}

// 删除-菜单列表
export function deleteMenu(data: any) {
  return request({
    url: '/v1/admin/system/deleteMenu',
    method: 'delete',
    data: data
  })
}

// JILI游戏
export function getJiliGame(params: any) {
  return request({
    url: '/v1/config/getSlotPlatFormGame',
    method: 'get',
    params: params
  })
}
// JILI可查询的ID
export function getJiliId(params: any) {
  return request({
    url: '/v1/config/getSlotResultDataId',
    method: 'get',
    params: params
  })
}
// JILI新增玩家模拟下注---回折线图数据
export function getJiliLineChart(data: any) {
  return request({
    url: '/v1/config/getSlotResultData',
    method: 'post',
    data: data
  })
}
// 删除JILI
export function deleteJili(data: any) {
  return request({
    url: '/v1/config/slotResultDelete',
    method: 'delete',
    data: data
  })
}